<?php

namespace App\Models\GameServer;

use Illuminate\Database\Eloquent\Model;

class OnlineUser extends Model
{
    protected $table = 'online_user';
    protected $primaryKey = 'account_id';
    protected $connection = 'game_server';
    public $timestamps = false;

    //获取用户信息
    public function userInfo()
    {
        return $this->hasOne('App\Models\GameServer\UserInfo', 'id', 'account_id');
    }
}
